import axios from "axios";
axios.defaults.baseURL = 'http://127.0.0.1:9090/';
/**
 *
 * @param url 'api/get'
 * @param params
 */
export function doGet(url,params){
    return axios.get(url,params);
}

/**
 *
 * @param url 'api/post'
 * @param data {
 *         firstName: 'First',
 *         lastName: 'Last'
 *     }
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function doPost(url,data){
    return axios.post(url,data);
}
